package com.yan.json;

/**
 * @author taoge
 * @Date 2024/8/13 14:01
 * @Description
 */
public class JsonDemo1 {
    /*
        1.定义一个对象json字符串
        {"name":"yft" , "age":18 , "height":183.5 , "sex":"男"}

        2.定义一个普通数组
        [1,2,3,4,5]

        3.定义对象数组
        [
            {"name":"hpy" , "age":19 , "height":178.9 , "sex":"男"},
            {"name":"yft" , "age":18 , "height":183.5 , "sex":"男"},
            {"name":"wl" , "age":17 , "height":180.5 , "sex":"女"}
        ]

        4.定义一个对象,里面有一个属性的值是数组
        {
            "userlist":
            [
            {"name":"hpy" , "age":19 , "height":178.9 , "sex":"男"},
            {"name":"yft" , "age":18 , "height":183.5 , "sex":"男"},
            {"name":"wl" , "age":17 , "height":180.5 , "sex":"女"}
            ]
        }

       5.定义一个对象,里面有多个属性的值是数组

       {

           "userlist":
                [
                {"name":"hpy" , "age":19 , "height":178.9 , "sex":"男"},
                {"name":"yft" , "age":18 , "height":183.5 , "sex":"男"},
                {"name":"wl" , "age":17 , "height":180.5 , "sex":"女"}
                ],
            "hobby":
               [1,2,3,4,5]

       }





     */
}
